package com.savvy.exception;

/**
 * This class inherit from Exception, it provide the C language like feature --
 * Error Code.
 * 
 * @author Bennis
 * 
 */
public class CodeException extends Exception {

	/**
	 * 
	 */
	private static final long serialVersionUID = -6032644250743515224L;

	private int code;

	public CodeException(String message) {
		super(message);
	}

	public CodeException(Throwable cause) {
		super(cause);
	}

	public CodeException(int code) {
		super();
		this.code = code;
	}

	public CodeException(String message, Throwable cause) {
		super(message, cause);
	}

	public CodeException(String message, int code) {
		super(message);
		this.code = code;
	}

	public CodeException(Throwable cause, int code) {
		super(cause);
		this.code = code;
	}

	public CodeException(String message, Throwable cause, int code) {
		super(message, cause);
		this.code = code;
	}

	public int getCode() {
		return code;
	}

}
